/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/
$link-color: #0275d8;

.using-patterns-modal {
  .modal-body {
    overflow: initial;
  }
  .pattern-details {
    margin: 10px 0;
    :not(.custom-pattern) {
      input {
        display: inline-block;
        width: 90px;
        margin: 0 10px;
      }
    }
  }
  .dropdown {
    display: inline-block;
    margin-right: 10px;

    .dropdown-item {
      cursor: initial;
    }

    .using-patterns-modal-dropdown {
      min-height: 20px;
      // max-height = Full viewport height - margin top of modal - distance between top of modal to bottom of dropdown
      max-height: calc(100vh - 1.625em - 440px);
      overflow-y: auto;
    }
  }
  .showhidelink {
    color: $link-color;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
  }
}
